//
//  ViewController.m
//  touch 画图
//
//  Created by MB__Lee on 2018/5/8.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "ViewController.h"

#import "Canvers.h"

@interface ViewController ()<CanversDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    Canvers *canver = [[Canvers alloc] initWithFrame:self.view.bounds];
    [self.view addSubview: canver];
    
    canver.delegate = self;
    canver.removeLastState = YES;//移除上次的绘制图形
    
    
}

-(void)canverView:(Canvers *)canver sendAllPoints:(NSArray *)pointArr{
    NSLog(@"%zd",pointArr.count);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
